package cn.ronghuanet.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private String keyword;
    private Long currentPage;
    private Long pageSize;

    public Long getStart(){
        return  (currentPage-1)*pageSize;
    }
}
